package com.fang.starter;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author fanglingxiao
 * @version 1.0
 * @description TODO
 * @date 2022/3/28 10:07 上午
 **/
@Configuration
@ConditionalOnProperty(name = "enable.autoConfiguration", matchIfMissing = true)
public class MyStarter {

    static {
        System.out.println("MyStarter init ...");
    }

    @Bean
    public MyStarterBean myStarterBean() {
        return new MyStarterBean();
    }
}
